#if !defined(AFX_UIHAOMADLG_H__3405F499_0420_435D_84F1_E376D3787B3C__INCLUDED_)
#define AFX_UIHAOMADLG_H__3405F499_0420_435D_84F1_E376D3787B3C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// UIHaoMaDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CUIHaoMaDlg dialog
#include ".//ui//TabPageSSL.h"
#include "UIAnalyzeDlg.h"

class CUIHaoMaDlg : public CTabPageSSL
{
// Construction
public:
	CUIHaoMaDlg(CWnd* pParent = NULL);   // standard constructor
	~CUIHaoMaDlg();
// Dialog Data
	//{{AFX_DATA(CUIHaoMaDlg)
	enum { IDD = IDD_DIG_HAOMA };
	CString	m_strRed1;
	CString	m_strRed2;
	CString	m_strRed3;
	CString	m_strRed4;
	CString	m_strRed5;
	CString	m_strRed6;
	CString	m_strBlue;
	CString	m_strRedFushi;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CUIHaoMaDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CUIHaoMaDlg)
	afx_msg void OnBtnRed1();
	afx_msg void OnHaomaBtnNext();
	afx_msg void OnBtnRed2();
	afx_msg void OnBtnBlue();
	afx_msg void OnBtnRed3();
	afx_msg void OnBtnRed4();
	afx_msg void OnBtnRed5();
	afx_msg void OnBtnRed6();
	afx_msg void OnChkRed1();
	afx_msg void OnChkRed2();
	afx_msg void OnChkRed3();
	afx_msg void OnChkRed4();
	afx_msg void OnChkRed5();
	afx_msg void OnChkRed6();
	afx_msg void OnChkBlue();
	virtual BOOL OnInitDialog();
	afx_msg void OnBtnRed7();
	afx_msg void OnBtnRed1Qj();
	afx_msg void OnBtnRed2Qj();
	afx_msg void OnBtnRed3Qj();
	afx_msg void OnBtnRed4Qj();
	afx_msg void OnBtnRed5Qj();
	afx_msg void OnBtnRed6Qj();
	afx_msg void OnBtnBlueQj();
	afx_msg void OnChkRedFushi();
	afx_msg void OnBtnRed1K5qj();
	afx_msg void OnBtnRed2K5qj();
	afx_msg void OnBtnRed3K5qj();
	afx_msg void OnBtnRed4K5qj();
	afx_msg void OnBtnRed5K5qj();
	afx_msg void OnBtnRed6K5qj();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void ShowAnalyzeDlg();
	CUIAnalyzeDlg *m_pDlgAnalyze;
	bool CheckInputFormat();
	void RedQj(int idx) ;
	void RedK5Qj(int idx) ;
	void Red(int max,int div,int min,int idx);

public:
	bool SetYuCeDataToFile(CString strFile);
	bool GetYuCeDataFromFile(CString strFile);
	bool UpdateHMData();
	void GetIntelYuCe();
	afx_msg void OnBnClickedBtnRed1Yilou();
	afx_msg void OnBnClickedBtnRed2Yilou();
	afx_msg void OnBnClickedBtnRed3Yilou();
	afx_msg void OnBnClickedBtnRed4Yilou();
	afx_msg void OnBnClickedBtnRed5Yilou();
	afx_msg void OnBnClickedBtnRed6Yilou();
	afx_msg void OnBnClickedBtnBlueYilou();
	afx_msg void OnBnClickedBtnFushiIlou();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_UIHAOMADLG_H__3405F499_0420_435D_84F1_E376D3787B3C__INCLUDED_)
